/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.Modem;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 *
 * @author ronildo
 */

@Local
public interface ModemPersistenceLocal {

    @PostConstruct
    void initialize();

    Modem findById(Modem modem);

    Modem findModemByName(String name) throws PersistenceUnitException;

    Modem findModemBySmscRoute(String name) throws PersistenceUnitException;

    List<Modem> list(Modem modem);

    List<Modem> listAll();

    void persist(Modem modem);

    void remove(Modem modem);

    void update(Modem modem);

    List<Modem> listAllSharedModems();
}
